home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cocktail
/
rpp.lha
/
rpp
/
src
/
Scanner.md
< prev
next >
Wrap
Text File
|
1992-08-18
|
716b
|
33 lines
(* $Id: Scanner.md,v 2.3 1992/08/18 09:05:32 grosch rel $ *)
DEFINITION MODULE Scanner;
IMPORT Strings;
(* line 1 "rpp.rex" *)
FROM Positions IMPORT tPosition;
TYPE tScanAttribute = RECORD Position: tPosition; END;
VAR InfoFileName : ARRAY [0..255] OF CHAR;
CONST EofToken = 0;
VAR TokenLength : INTEGER;
VAR Attribute : tScanAttribute;
VAR ScanTabName : ARRAY [0 .. 127] OF CHAR;
VAR Exit : PROC;
PROCEDURE BeginScanner ;
PROCEDURE BeginFile (FileName: ARRAY OF CHAR);
PROCEDURE GetToken (): INTEGER;
PROCEDURE GetWord (VAR Word: Strings.tString);
PROCEDURE GetLower (VAR Word: Strings.tString);
PROCEDURE GetUpper (VAR Word: Strings.tString);
PROCEDURE CloseFile ;
PROCEDURE CloseScanner ;
END Scanner.